﻿@model IEnumerable<ChampionFramework.Models.Jogador>
@{
	ViewBag.Title = "Index";
}
<h2>
	Index</h2>
<p>
	@Html.ActionLink("Create New", "Create")
</p>
<table>
	<tr>
		<th>
			@Html.DisplayNameFor(model => model.Nome)
		</th>
		<th>
			@Html.DisplayNameFor(model => model.Nacionalidade)
		</th>
		<th>
			@Html.DisplayNameFor(model => model.Idade)
		</th>
		<th>
			Data de Inscrição
		</th>
		<th>
			@Html.DisplayNameFor(model => model.Time.Nome)
		</th>
		<th>
		</th>
	</tr>
	@foreach (var item in Model)
 {
		<tr>
			<td>
				@Html.DisplayFor(modelItem => item.Nome)
			</td>
			<td>
				@Html.DisplayFor(modelItem => item.Nacionalidade)
			</td>
			<td>
				@Html.DisplayFor(modelItem => item.Idade)
			</td>
			<td>
				@Html.DisplayFor(modelItem => item.DataInscricao)
			</td>
			<td>
				@Html.DisplayFor(modelItem => item.Time.Nome)
			</td>
			<td>
				@Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
				@Html.ActionLink("Details", "Details", new { id = item.Id }) |
				@Html.ActionLink("Delete", "Delete", new { id = item.Id })
			</td>
		</tr>
 }
</table>